package com.xinghanlaser.applet.base.apilog.config;

import com.xinghanlaser.applet.base.apilog.aspect.ApiLogAspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;

/**
 * <p>
 *
 * <p>
 *
 * @author: mftuo 陀铭峰
 * @since: 2024/4/26 16:59
 */

public class ApiLogAutoConfiguration {
    @Bean
    @Primary
    @ConditionalOnProperty(name = "apiLog.enable",havingValue = "true")
    public ApiLogAspect apiLogAspect(){
        return new ApiLogAspect();
    }
}
